<?php $this->_extends(Helper_Store::layout()); ?>
<?php $this->_block('title');?> <?=_L('member_center')?>  -  <?=$store['name']?> <?php $this->_endblock(); ?>
<?php $this->_block('contents'); ?>
<style>
th{ text-align:right; padding:5px 10px;}
</style>
<div class="MemberCenter">
  <div class="siteparttitle">
    <div class="title"></div>
    <div class="main">
      <div class="content">
        <div class="user"><?=_L('member/welcome')?>：<br />
          <strong><?=$customer['email']?></strong></div>
        <div class="info"> </div>
      </div>
    </div>
  </div>
  <div class="MemberSidebar">
     <?php $this->_element('customermenu'); ?>
  </div>
  <div class="MemberMain">
    <div style="margin-right:175px;">
      <h1 class="title"><?=_L('member/edit_password')?></h1>
	  <?php if(isset($error)):?>
<div class="notice">
	<?php foreach($error as $en=>$v){
			switch($en){
				case 'newpassword2': echo _L('member/twice_pass_not_match'); break;
				case 'newpassword': echo _L('member/password_length_limit'); break;
				case 'oldpassword': echo _L('member/orig_pass_not_right'); break;
				case 'success': echo _L('member/edit_password_successed'); break;
			}
		  }
	?>
</div>
<?php endif;?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="200"><?=_L('email')?>：</th>
          <td><?=$customer['email']?></td>
        </tr>
		<tr><th><?=_L('member/orig_password')?>:</th><td><input type="text" name="oldpassword" value=""  size="30"/></td></tr>
		<tr><th><?=_L('member/new_password')?>:</th><td><input type="password" name="newpassword" value=""  size="30"/></td></tr>
		<tr><th><?=_L('member/confirm_password')?> :</th><td><input type="password" name="newpassword2" value="" size="30" /></td></tr>
	    <tr>
          <th></th>
          <td><input type="submit" value=" <?=_L('confirm')?> " />
           </td>
        </tr>

      </table>
    </div>
  </div>
  <div class="clear"></div>
</div>
<div class="clear"></div>

<?php $this->_endblock('contents'); ?>
